package com.example.travel.mapper;

import com.example.travel.pojo.orm.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserMapper {
    List<User> getAllUsers();

    User getUserById(int userId);

    User getUserByName(String userName);

    List<User> getUserByLikeName(String userName);

    User checkPassword(User user);

    User getLastUser();

    int addUser(User user);

    int updateUser(User user);

    int deleteUser(int userId);
}
